
lst_a = [[8,8.9],[3,5.6],[13,25],[67.5,77.5]]

b = [10, 25]

flag = True

max_list = []
min_list = []
for item in lst_a:
    max_list.append(item[1])
    min_list.append(item[0])

max_value = max(max_list)
print(max_value)
min_value = min(min_list)
print(min_value)

if b[0]<min_value and b[1]>max_value:
    flag = False

for item in lst_a:
    if b[0]>=item[0] and b[0]<item[1]:
        flag = False
    if b[1]>item[0] and b[1]<=item[1]:
        flag = False

print(flag)